#pragma once

class CKtvSectionLock
{
public:
	CKtvSectionLock(void);
	~CKtvSectionLock(void);

	int Lock(void);
	int Unlock(void);
protected:
	CRITICAL_SECTION m_cs;
};


class CKtvAutoLock
{
public:
	CKtvAutoLock(CKtvSectionLock* lpLock);
	~CKtvAutoLock();
protected:
	CKtvSectionLock* m_lpLock;
	
};